package com.ruoyi.frame.base.constant;

import org.springframework.core.env.Environment;

import java.util.Map;

/**
 * 数据常量
 * Created by 曾祥江 on 2018/7/4.
 * zengxiangjiang@umpay.com
 */
public class DataConstant {
    //常量0和1
    public static final String ZERO = "0";
    public static final String ONE = "1";
    //常用编码
    public static final String CODING_UTF8 = "UTF-8";
    public static final String CODING_GBK = "GBK";
    //存放所有配置常量
    public static Environment env;
    public static Map<String, String> serviceMap;
    public static Map<String, String> regexMap;
    public static final String SALT = "123456";
    //funCode
    public static final String SUB_MCH_ADD = "subMch/add";

    public static final String RESET_PASS = "重置密码";

    public static final String RESET_MAIL = "重置邮箱";

    /**
     * 用于IP定位转换
     */
    public static final String REGION = "内网IP|内网IP";

    /**
     * win 系统
     */
    public static final String WIN = "win";

    /**
     * mac 系统
     */
    public static final String MAC = "mac";

    /**
     * 常用接口
     */
    public static class Url{
        // 免费图床
        public static final String SM_MS_URL = "https://sm.ms/api";
        // IP归属地查询
        public static final String IP_URL = "http://whois.pconline.com.cn/ipJson.jsp?ip=%s&json=true";
    }
}
